package com.tianyi.wz.walkinggame.common;

import android.content.Context;
import android.widget.Toast;

import org.apache.commons.lang3.StringUtils;

public class ToastCommon {

    /**
     * 显示通知
     * @param context
     * @param msg
     */
    public static void showToast(Context context, String msg){
        if(context==null || !StringUtils.isNotEmpty(msg)){
            return;
        }
        Toast toast = Toast.makeText(context.getApplicationContext(), msg, Toast.LENGTH_SHORT);
        toast.show();
    }

}
